/*    This file is part of libmissive.
 *
 *    libmissive is free software: you can redistribute it and/or modify
 *    it under the terms of the GNU Lesser General Public License as published by
 *    the Free Software Foundation, either version 3 of the License, or
 *    (at your option) any later version.
 *
 *    libmissive is distributed in the hope that it will be useful,
 *    but WITHOUT ANY WARRANTY; without even the implied warranty of
 *    MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 *    GNU Lesser General Public License for more details.
 *
 *    You should have received a copy of the GNU Lesser General Public License
 *    along with libmissive.  If not, see <http://www.gnu.org/licenses/>.
 */

#ifndef MISV_TRANSFER_CRYPT_H
#define MISV_TRANSFER_CRYPT_H

#include <epistle/message.h>

#include "crypt.h"

int
srt_sender_prep(Msg *msg, const Nonce nonce,
		const Box_skey client_skey, const Box_pkey client_pkey,
		const Box_pkey server_pkey, const Box_pkey recvr_pkey);

int
srt_server_look(Msg *msg, const Box_skey server_skey,
		const Box_pkey server_pkey, Box_pkey recvr_pkey);

int
srt_receiver_look(Msg *msg, Nonce nonce,
		  Box_pkey client_pkey, const Box_skey recvr_skey,
		  const Box_pkey recvr_pkey);

int
pub_sender_prep(Msg *msg, const Sign_skey client_skey,
		const Sign_pkey client_pkey, const Box_pkey server_pkey);

int
pub_server_look(Msg *msg, Sign_pkey client_pkey, const Box_skey server_skey,
		const Box_pkey server_pkey, Msg *recvr_msg);

int
pub_receiver_look(Msg *msg, Sign_pkey client_pkey);

#endif
